package com.ntb.entities;

import com.ntb.models.BuildingStatusDAO;
import com.ntb.models.impl.BuildingStatusDAOImpl;
import java.sql.Date;
import java.sql.Timestamp;

public class Buildings {

    private int buildingID;
    private int landID;
    private int buildingTypeID;
    private String typeName;
    private String buildingName;
    private int numFloors;
    private int numRooms;
    private Date constructedDate;
    private String description;
    private String statusCode;
    private String statusName;
    private Timestamp statusChangedDate;
    private int occupancyPermitID;

    public Buildings() {
    }

    public int getBuildingID() {
        return buildingID;
    }

    public void setBuildingID(int buildingID) {
        this.buildingID = buildingID;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public int getBuildingTypeID() {
        return buildingTypeID;
    }

    public void setBuildingTypeID(int buildingTypeID) {
        this.buildingTypeID = buildingTypeID;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Date getConstructedDate() {
        return constructedDate;
    }

    public void setConstructedDate(Date constructedDate) {
        this.constructedDate = constructedDate;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getLandID() {
        return landID;
    }

    public void setLandID(int landID) {
        this.landID = landID;
    }

    public int getNumFloors() {
        return numFloors;
    }

    public void setNumFloors(int numFloors) {
        this.numFloors = numFloors;
    }

    public int getNumRooms() {
        return numRooms;
    }

    public void setNumRooms(int numRooms) {
        this.numRooms = numRooms;
    }

    public int getOccupancyPermitID() {
        return occupancyPermitID;
    }

    public void setOccupancyPermitID(int occupancyPermitID) {
        this.occupancyPermitID = occupancyPermitID;
    }

    public Timestamp getStatusChangedDate() {
        return statusChangedDate;
    }

    public void setStatusChangedDate(Timestamp statusChangedDate) {
        this.statusChangedDate = statusChangedDate;
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }

    public String getStatusName() {
        BuildingStatusDAO statusDao = new BuildingStatusDAOImpl();
        return statusDao.getStatusName(this.statusCode);
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }
}
